Skip to content

Conversation

@ryanmac
Copy link
Owner

@ryanmac ryanmac commented Jul 25, 2025

Summary

  • Added --auto flag for non-interactive installation, perfect for Claude Code
  • Smart defaults that make sensible choices without user input
  • Additional control flags for specific scenarios

Problem

When installing Code Conductor from Claude Code, the installer would hang on interactive prompts, making the experience frustrating:

  • Upgrade/reinstall/cancel choice
  • Continue anyway when already at latest version
  • Example files prompt
  • Auto-commit prompt
  • Development environment selection
  • Start agent prompt

Claude Code couldn't handle these interactive prompts effectively.

Solution

Added command-line argument parsing with these options:

  • --auto / --non-interactive - Run with sensible defaults
  • --upgrade - Force upgrade even if already installed
  • --reinstall - Force fresh installation
  • --force - Continue even when already at latest version
  • --skip-examples - Skip copying example configurations
  • --skip-commit - Skip auto-committing changes
  • --skip-agent-start - Skip starting dev agent
  • --help - Show usage information

In auto mode, the installer:

  • Defaults to upgrade for existing installations
  • Copies examples for new installations
  • Auto-commits changes
  • Skips agent startup (better for CI environments)
  • Provides clear feedback without waiting for input

Usage

# Interactive (default)
bash <(curl -fsSL https://raw.githubusercontent.com/ryanmac/code-conductor/main/conductor-init.sh)

# Non-interactive (for Claude Code)
curl -fsSL https://raw.githubusercontent.com/ryanmac/code-conductor/main/conductor-init.sh | bash -s -- --auto

# With specific options
curl -fsSL ... | bash -s -- --auto --upgrade --skip-commit

Test plan

  • Bash syntax check passes
  • Help command displays correctly
  • Documentation updated with new options
  • CI checks pass
  • Manual testing in various scenarios

🤖 Generated with Claude Code

Makes Code Conductor installation seamless from Claude Code and other
automated environments by adding a --auto flag that bypasses all
interactive prompts.

Key improvements:
- Added --auto flag for non-interactive installation
- Smart defaults: upgrades existing installs, copies examples, commits changes
- Additional flags for fine control: --upgrade, --reinstall, --skip-examples
- Updated docs with Claude Code-specific instructions

This addresses the user experience issue where Claude Code struggled
with interactive prompts during installation.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@ryanmac ryanmac merged commit 0ebc187 into main Jul 25, 2025
10 checks passed
@ryanmac ryanmac deleted the improve-conductor-installer-for-claude branch July 25, 2025 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants